<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="Cache-Control" content="no-siteapp">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=1, minimum-scale=1, maximum-scale=1">
<meta name="referrer" content="never">
<meta name="robots" content="index,follow">
<link rel="shortcut icon" href="/favicon.png?v=198964">
<link rel="apple-itouch-icon" href="/favicon.png?v=198964">
<link href="/bundle/index.min.css" rel="stylesheet">
<link href="https://fonts.loli.net/css?family=Merriweather:300,700,700italic,300italic|Open+Sans:700,400" rel="stylesheet">
<link href="https://cdn.staticfile.org/prism/1.16.0/themes/prism.min.css" rel="stylesheet">
<link href="https://cdn.staticfile.org/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<script>
    function ensureDate(e){return"object"!=typeof e&&(e=new Date(e)),e}function dateFormat(e,t){void 0===t&&(t=e,e=ensureDate());let n={M:(e=ensureDate(e)).getMonth()+1,d:e.getDate(),h:e.getHours(),m:e.getMinutes(),s:e.getSeconds(),q:Math.floor((e.getMonth()+3)/3),S:e.getMilliseconds()},r=new RegExp("([yMdhmsqS])+","g");return t=t.replace(r,function(t,r){let u=n[r];if(void 0!==u)return t.length>1&&(u=(u="0"+u).substring(u.length-2)),u;if("y"===r){return(e.getFullYear()+"").substring(4-t.length)}return t})}
</script>
    <meta name="keywords" content="Just be nice, always think twice!">
    <meta name="description" content="Just be nice, always think twice!">
    <title>江矿先森的博客.</title>
</head>

<body>
    <article class="container">
         <header class="header-wrap">
    <nav class="main-nav">
        <ul class="menu vertical naive">
            <li class="menu-item"><a href="/">Home</a></li>
            <li class="menu-item"><a href="/archive.html">Archive</a></li>
            <li class="menu-item"><a href="/tag.html">Tag</a></li>
            
            <li class="menu-item"><a href="/atom.xml">RSS</a></li>
        </ul>
    </nav>
    <div class="bgs" style="background-image: url(https://pic6.58cdn.com.cn/nowater/webim/big/n_v212fe49b1d6d5492cb1def84eeff4b142.jpg);"></div>
    <div class="vertical">
        <div class="header-wrap-content inner">
            <h3 class="title">Stay before every beautiful thoughts.</h3>
            <h3 class="subtitle">Just be nice, always think twice!</h3>
        </div>
    </div>
    <a class="scroll-down icon-down-open" href="#article"></a>
</header> 
        <article class="main page" id="article">
            
            <ul class="article-list">
                
                <li class="article">
                    <a class="title" href="/introduction-to-fetch.html">浅谈fetch及跨域</a>  
                    <section class="preview content"><p>fetch能让我们完成类似 XMLHttpRequest (XHR) 提供的ajax功能。它的主要区别是，Fetch API 使用了 Promise，它让接口更简单、简洁，避免了回调的复杂性，省去了使用复杂的 XMLHttpRequest API。</p>
</section>
                    <section class="info">
                        <span class="avatar" style="background-image: url(https://pic1.58cdn.com.cn/nowater/webim/big/n_v2a9773b605e754c8493cf53ca8f5c0d7e.jpg);"></span><a class="name" href="javascript:;">江矿先森.</a>  
                        <span class="date"><script>document.write(dateFormat( 1515378234 *1000, 'yyyy-MM-dd'));</script></span> 
                        
                    </section>
                </li>
                
                <li class="article">
                    <a class="title" href="/vue-vulnerable.html">Vue 使用中踩过的坑</a>  
                    <section class="preview content"><p>vue如今可谓是一匹黑马，github star数已居第一位！前端开发对于vue的使用已经越来越多，它的优点就不做介绍了，本篇是我在使用vue过程中遇到的一些惊(坑)喜(爹)。</p>
</section>
                    <section class="info">
                        <span class="avatar" style="background-image: url(https://pic1.58cdn.com.cn/nowater/webim/big/n_v2a9773b605e754c8493cf53ca8f5c0d7e.jpg);"></span><a class="name" href="javascript:;">江矿先森.</a>  
                        <span class="date"><script>document.write(dateFormat( 1513592634 *1000, 'yyyy-MM-dd'));</script></span> 
                        
                    </section>
                </li>
                
                <li class="article">
                    <a class="title" href="/vue-best5.html">Vue.js最佳五招实践</a>  
                    <section class="preview content"><p>对大部分人来说，掌握Vue.js基本的几个API后就已经能够正常地开发前端网站。但如果你想更加高效地使用Vue来开发，成为Vue.js大师，那下面我要传授的这五招你一定得认真学习一下了。</p>
</section>
                    <section class="info">
                        <span class="avatar" style="background-image: url(https://pic1.58cdn.com.cn/nowater/webim/big/n_v2a9773b605e754c8493cf53ca8f5c0d7e.jpg);"></span><a class="name" href="javascript:;">江矿先森.</a>  
                        <span class="date"><script>document.write(dateFormat( 1513135434 *1000, 'yyyy-MM-dd'));</script></span> 
                        
                    </section>
                </li>
                
                <li class="article">
                    <a class="title" href="/vue-loading-toast.html">Vue自定义Loading、Toast组件</a>  
                    <section class="preview content"><p>因项目登录界面用到Loading和Toast, 网上逛了一圈, 全是一整套组件, 有些东西又用不上, 太冗余了, 无奈自己撸个。</p>
</section>
                    <section class="info">
                        <span class="avatar" style="background-image: url(https://pic1.58cdn.com.cn/nowater/webim/big/n_v2a9773b605e754c8493cf53ca8f5c0d7e.jpg);"></span><a class="name" href="javascript:;">江矿先森.</a>  
                        <span class="date"><script>document.write(dateFormat( 1512444234 *1000, 'yyyy-MM-dd'));</script></span> 
                        
                    </section>
                </li>
                
                <li class="article">
                    <a class="title" href="/weapp-loadmore.html">微信小程序上拉加载更多的思(坑)路</a>  
                    <section class="preview content"><p>微信小程序开发中遇到的坑, 总有些坑你得一个一个的跳啊,/(ㄒoㄒ)/~~当用户打开一个页面时，假设后台数据量庞大时，一次性地返回所有数据给客户端，页面的打开速度就会有所下降，而且用户只看上面的内容而不需要看后面的内容时，也浪费用户流量，基于优化的角度来考虑，后台不要一次性返回所有数据，当用户有需要再往下翻的时候，再加载更加数据出来。</p>
</section>
                    <section class="info">
                        <span class="avatar" style="background-image: url(https://pic1.58cdn.com.cn/nowater/webim/big/n_v2a9773b605e754c8493cf53ca8f5c0d7e.jpg);"></span><a class="name" href="javascript:;">江矿先森.</a>  
                        <span class="date"><script>document.write(dateFormat( 1511087034 *1000, 'yyyy-MM-dd'));</script></span> 
                        
                    </section>
                </li>
                
            </ul>
            <section class="page-nav">
                <a class="prev" href="/page3.html">Prev</a> <span class="nav">4 / 10</span> <a class="next" href="/page5.html">Next</a>
            </section>
        </article>
    </article>
    <footer class="footer clearfix">
    <span class="copyright">
        <script>
            document.write(new Date().getFullYear());
        </script> <i class="fa fa-copyright"></i> Made with <i class="fa fa-heart"></i> using &ltjoname /&gt
        <span id="runtime_span"></span>
    </span>
</footer>
</body>
<script src="/bundle/index.min.js"></script>
</html>